package com.chixing.day17_reflect_thread.thread.synchronizedDemo;
//模拟1000个终端，每个终端向A账户存款10元。要求最后的账户余额正确
public class Analg extends Thread{
    private Account account;

    public Analg(Account account) {
        this.account = account;
    }

    @Override
    public void run() {
        account.depoist(10);
        //System.out.println(Thread.currentThread().getName()+"正在存钱，当前余额"+account.getAccMoney());
    }
}
